#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	char c = 0;
	char s[100] = { 0 };
	char ch [100] = {0};
	gets_s(ch);
	for (i = 0;(c = ch[i]) != '\0';i++)
	{
		c = ch[i];
		if (c == 'A')
		{
			continue;
		}
		s[j] = ch[i];
		j++;
	}
	puts(s);
	return 0;
}